<?php
/**
 * 跃飞科技版权所有 @2017
 * User: 钟贵廷
 * Date: 2017/5/24
 * Time: 10:41
 */

namespace app\admin\validate;

use think\Validate;

class AdPosition extends Validate
{
    protected $rule = [
        'adpos_name'  =>  'require',
        'adpos_width'  =>  'number|require',
        'adpos_height'  =>  'number|require',
    ];

    protected $message  =   [
        'adpos_name.require' => '广告位名称必填!',
        'adpos_width.require' => '宽度必填!',
        'adpos_height.require' => '高度必填!',
        'adpos_width.number' => '宽度必须为大于0的数字!',
        'adpos_height.number' => '高度必须为大于0的数字!',
    ];
}